using MoonFramework.Scripts.View.UI;
using MoonFramework.Template;
using UnityEngine;
using UnityEngine.UI;

namespace UI
{
	[UIElement(true, "UI/UI_GameLoadWindow", 4)]
	public class UI_GameLoadWindow : BaseUIWindow
	{
		[SerializeField]
		private Text progress_Text;
		[SerializeField]
		private Image fill_Image;
		
		public override void Show()
		{
			base.Show();
			UpdateProgress(0);
		}

		/// <summary>
		/// 更新进度
		/// </summary>
		public void UpdateProgress(float progressValue)
		{
			progress_Text.text = (int)progressValue + "%";
			fill_Image.fillAmount = 0;
		}
	}
}
